<?= $this->Html->script('http://maps.google.com/maps/api/js?sensor=true', false); ?>
<?php
  // Override any of the following default options to customize your map
  $map_options = array(
    'id' => 'map_canvas',
    'width' => '800px',
    'height' => '400px',
    'style' => '',
    'zoom' => 12,
    'type' => 'HYBRID',
    'custom' => '',
    'localize' => false,
    'latitude' => -27.712758,
    'longitude' => -53.716815,
    'address' => '1 Infinite Loop, Cupertino',
    'marker' => TRUE,
    'markerTitle' => 'Lab1',
    'markerIcon' => 'http://google-maps-icons.googlecode.com/files/home.png',
    'markerShadow' => 'http://google-maps-icons.googlecode.com/files/shadow.png',
    'infoWindow' => true,
    'windowText' => 'Lab de testes'
  );
?>
<?php
  // Override any of the following default options to customize your marker
  $marker_options = array(
    'localize' => false,
    'latitude' => -28.712758,
    'longitude' => -53.716815,
    'showWindow' => true,
    'windowText' => 'Marker',
    'markerTitle' => 'Title',
    'markerIcon' => 'http://labs.google.com/ridefinder/images/mm_20_purple.png',
    'markerShadow' => 'http://labs.google.com/ridefinder/images/mm_20_purpleshadow.png',
  );?>

  
<?= $this->GoogleMap->addMarker("map_canvas", 1, array('latitude' => -29.712758, 'longitude' => -53.716815), $marker_options); ?>
<?= $this->GoogleMap->addPolyline("map_canvas", "polyline", array("start" => array("latitude" =>-29.712758 ,"longitude"=> -53.716815), "end" => array("latitude" =>-29.712758 ,"longitude"=> -54.716815))); ?>

<?= $this->GoogleMap->map($map_options); ?>